﻿using SqlSugar;

namespace StoreAPI.Models
{
    public class Store
    {
        public Store()
        { }
        #region Model
        private int _storeid;
        private string _storename;
        private string _storeplace;
        private int _areacount = 1;
        private string _remark;
        private int _status = 0;
        private int _createuserid;
        private DateTime _createtime = DateTime.Now;
        private int? _lastupdateuserid;
        private DateTime? _lastupdatetime;
        /// <summary>
        /// 仓库Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int StoreId
        {
            set { _storeid = value; }
            get { return _storeid; }
        }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string StoreName
        {
            set { _storename = value; }
            get { return _storename; }
        }
        /// <summary>
        /// 仓库位置
        /// </summary>
        public string StorePlace
        {
            set { _storeplace = value; }
            get { return _storeplace; }
        }
        /// <summary>
        /// 分区数
        /// </summary>
        public int AreaCount
        {
            set { _areacount = value; }
            get { return _areacount; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            set { _remark = value; }
            get { return _remark; }
        }
        /// <summary>
        /// 状态（0正常，1禁用）
        /// </summary>
        public int Status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 创建者Id
        /// </summary>
        public int CreateUserId
        {
            set { _createuserid = value; }
            get { return _createuserid; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 最后一次修改者Id
        /// </summary>
        public int? LastUpdateUserId
        {
            set { _lastupdateuserid = value; }
            get { return _lastupdateuserid; }
        }
        /// <summary>
        /// 最后一次修改时间
        /// </summary>
        public DateTime? LastUpdateTime
        {
            set { _lastupdatetime = value; }
            get { return _lastupdatetime; }
        }
        #endregion Model
    }
}
